(function(){try{var i=window.$MicrosoftMaps8,n=i.Internal,d=n._BoundsAccumulator,u=n._Debug,g=n._Dispatcher,nt=n._WorkDispatcher,tt=n._EventBinding,it=n._Gimme,f=n._Helper,rt=n._JSEvent,ut=i.ImageryMapLayer,o=n._LatLonCrs,b=i.LocationRect,c=n._LruCache,e=i.Location,ft=i.MapMath,et=n._MercatorCube,ot=i.MercatorCubeCrs,st=n._MercatorTileUtility,ht=n._Observable,ct=n._ObservableObject,lt=n._Overlay,at=n._OverlayManager,r=i.Point,vt=i.Size,l=n._VectorMath,yt=i.VectorMapLayer,pt=n._Network,wt=n._GeometryGeneralizer,bt=i.BasicTemplate,kt=i.GlobalConfig,s=function(){function n(n,t,i,r,f,e){var l,s,h,a;r===void 0&&(r=256);f===void 0&&(f=256);e===void 0&&(e=o.instance);u.assertIsInteger(n,"x");u.assertIsInteger(t,"y");u.assertIsInteger(i,"zoom");u.assertIsInteger(r,"width");u.assertIsInteger(f,"height");l=1<>=1,y>>=1;this.quadKey=c;this._stringValue=e.id+"PryamidTile"+c}return n.prototype.getParent=function(){var t=null;return this.zoom>1&&(t=new n(Math.floor(this.x/2),Math.floor(this.y/2),this.zoom-1,this.pixelWidth,this.pixelHeight)),t},n.prototype.toString=function(){return this._stringValue},n.fromQuadKey=function(t,i,r,u){var f,s,h;u===void 0&&(u=o.instance);var c=0,l=0,e=t.length;for(f=e;f>0;f--)s=1<0;i--){t=1<=180&&h.x===c.x&&(w=v),l=h.x,y=0;y